home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / ev_201.zip / STDFCTS.H < prev    next >
C/C++ Source or Header  |  1993-07-03  |  2KB  |  84 lines

  1. #if !defined (STDFCTS)            /* Prevents multiple declarations errors */
  2. #define STDFCTS
  3.  
  4.  
  5. /*
  6.    Module        : STDFCTS.H
  7.    Version       : 2.0
  8.    Revision date : July 3rd, 1993
  9.    Author(s)     : Rémy Gendron
  10.  
  11.    Description   : General purpose, often used functions.
  12. */
  13.  
  14.  
  15. /* Macros ---------------------------------------------------------------- */
  16.  
  17. #include "stdmacro.h"
  18.  
  19.  
  20. /* TypeDefs -------------------------------------------------------------- */
  21.  
  22. #include "stdtype.h"
  23.  
  24.  
  25. /* Global Variables References ------------------------------------------- */
  26.  
  27. extern char huge *msg_stderr[] ;             /* Error messages definitions */
  28. extern bool assert_err ;              /* TRUE if assert terminated program */
  29.  
  30.  
  31. /* Prototypes ------------------------------------------------------------ */
  32.  
  33. #ifdef __cplusplus                     /* Enables linking with C++ modules */
  34. extern "C" {
  35. #endif
  36.  
  37. void far assert                                  /* Validates an assertion */
  38. (
  39.    bool             condition,         /* If FALSE, prg will be terminated */
  40.    char       huge *fctname,       /* Name of currently executing function */
  41.    const char huge *errortext,                            /* Error message */
  42.    int              exitcode                    /* Dos ErrorLevel for exit */
  43. ) ;
  44.  
  45. int far arg_exist                    /* Checks for a command line argument */
  46. (
  47.    char huge *string                             /* Argument to search for */
  48. ) ;
  49.  
  50. int far arg_iexist  /* Case insensitive checks for a command line argument */
  51. (
  52.    char huge *string                             /* Argument to search for */
  53. ) ;
  54.  
  55. void huge * far heapalloc                       /* Allocates from far heap */
  56. (
  57.    dword nbytes                          /* Asks for a block <nbytes> long */
  58. ) ;
  59.  
  60. void far heapfree                     /* Deallocates a block from far heap */
  61. (
  62.    void huge *block                                /* Ptr to block to free */
  63. ) ;
  64.  
  65. int far to_upper               /* Converts a lowercase letter to uppercase */
  66. (
  67.    int ch                                     /* Character to be converted */
  68. ) ;
  69.  
  70. int far to_lower              /* Converts an uppercase letter to lowercase */
  71. (
  72.    int ch                                     /* Character to be converted */
  73. ) ;
  74.  
  75.  
  76. #ifdef __cplusplus
  77. }
  78. #endif
  79.  
  80.  
  81. /* End Source File ------------------------------------------------------- */
  82.  
  83. #endif
  84.